# _*_ coding: utf-8 _*_
# @Time : 2024-01-15 21:20
# @Author : wf

import urllib.request as request
import http.client

url = 'http://www.baidu.com'

#
response: http.client.HTTPResponse = request.urlopen(url)
# 类型注解后，可以有编码提示
content = response.read().decode("utf-8")
print(content)
